class Animal():
  def eat(self):
    print("我要吃有机物")

class Dog(Animal):
    # 类属性,没创建1个类,都会自带,type属性,必须赋值
    type='藏獒'
    # 方法
    def bark(self):
        print("汪汪汪")
  
dog1 = Dog()
dog1.eat()
# 获取类的继承关系
print(Dog.__mro__)